home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / cocktail / front.lha / front / m2c / Pars.c < prev    next >
C/C++ Source or Header  |  1992-08-18  |  1KB  |  67 lines

  1. #include "SYSTEM_.h"
  2.  
  3. #ifndef DEFINITION_WriteTok
  4. #include "WriteTok.h"
  5. #endif
  6.  
  7. #ifndef DEFINITION_Character
  8. #include "Character.h"
  9. #endif
  10.  
  11. #ifndef DEFINITION_Path
  12. #include "Path.h"
  13. #endif
  14.  
  15. #ifndef DEFINITION_Checks
  16. #include "Checks.h"
  17. #endif
  18.  
  19. #ifndef DEFINITION_Errors
  20. #include "Errors.h"
  21. #endif
  22.  
  23. #ifndef DEFINITION_Parser
  24. #include "Parser.h"
  25. #endif
  26.  
  27. #ifndef DEFINITION_Idents
  28. #include "Idents.h"
  29. #endif
  30.  
  31. #ifndef DEFINITION_Scanner
  32. #include "Scanner.h"
  33. #endif
  34.  
  35. #ifndef DEFINITION_StringMem
  36. #include "StringMem.h"
  37. #endif
  38.  
  39. #ifndef DEFINITION_TokenTab
  40. #include "TokenTab.h"
  41. #endif
  42.  
  43. static CARDINAL errors;
  44.  
  45.  
  46. void BEGIN_MODULE()
  47. {
  48.   BEGIN_WriteTok();
  49.   BEGIN_Character();
  50.   BEGIN_Path();
  51.   BEGIN_Checks();
  52.   BEGIN_Errors();
  53.   BEGIN_Parser();
  54.   BEGIN_Idents();
  55.   BEGIN_Scanner();
  56.   BEGIN_StringMem();
  57.   BEGIN_TokenTab();
  58.  
  59.   StringMem_InitStringMemory();
  60.   Idents_InitIdents();
  61.   Errors_BeginErrors();
  62.   Scanner_BeginScanner();
  63.   TokenTab_InitTokenTable();
  64.   errors = Parser_Parser();
  65.   Errors_CloseErrors();
  66. }
  67.